/**
 * 菜单搜索参数
 */
import { ref } from 'vue'
import { FormItemProps } from '../../../components/base/form-item/props/index'
import { menu } from '../../../entity/system/menu'
export const search = ref<Array<FormItemProps<menu>>>([
  {
    type: 'input',
    name: 'name',
    label: '菜单名称',
  },
  {
    type: 'input',
    name: 'url',
    label: '菜单URL',
  },
  {
    type: 'select',
    name: 'type',
    label: '菜单类型',
    params: {
      options: [
        {
          value: '0',
          label: '目录',
        },
        {
          value: '1',
          label: '菜单',
        },
      ],
    },
  },
  {
    type: 'select',
    name: 'endpoint',
    label: '菜单显示端',
    params: {
      options: [
        {
          value: '0',
          label: '管理端',
        },
        {
          value: '1',
          label: '用户端',
        },
      ],
    },
  },
])
